# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=xmlrpc-bruteforcer
pkgver=36.6a46371
pkgrel=1
pkgdesc='An XMLRPC brute forcer targeting Wordpress written in Python 3.'
arch=('any')
groups=('blackarch' 'blackarch-webapp')
url='https://github.com/kavishgr/xmlrpc-bruteforcer'
license=('custom:unknown')
depends=('python' 'python-requests' 'python-termcolor')
makedepends=('git')
source=("git+https://github.com/kavishgr/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 xmlrpcbruteforce.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

